home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / win_utl1 / cron18.zip / KILLWIN.TXT < prev    next >
Text File  |  1996-06-17  |  3KB  |  52 lines

  1. KILLWIN.EXE - A Windows executable that will close another window.
  2.  
  3. Usage:
  4.     >KILLWIN [-u] Window title
  5.  
  6.     -u    Uses an unfriendly method to close the window. Most windows will
  7.         die without uttering a peep with this option. This can result in
  8.         the loss of data. Some windows do not clean up after themselves
  9.         well when killed this way. Use this option at your own risk.
  10.  
  11.     Window title - The window title will be used to locate the window
  12.         to be closed. Only a fragment of the title needs to be supplied.
  13.         If the beginning of the title matches the fragment supplied,
  14.         the window will be closed. All windows with titles that match
  15.         will be closed. The comparison is case sensitive.
  16.  
  17. This utility was specifically written for Cron the Clock Daemon. It is
  18. sometimes desireable to have Cron close certain running programs. For
  19. example, a night compile might fail if the executable file was in use
  20. because the program was running. KILLWIN could be used to close all
  21. instances of the program before starting the compilation process.
  22.  
  23. The KillWin program offers a method for closing active Windows on your
  24. desktop. It works by enumerating all top level windows and comparing
  25. the title text against a string. Each Window whose title starts with
  26. the given string is sent a WM_CLOSE message. This is normally a safe
  27. way to close a window because it has the opportunity to query the user
  28. to save any unsaved data.
  29.  
  30. It is important to note that the title string comparison is case
  31. sensitive. Also note that there are often many windows running in the
  32. background that the user does not see. Providing a title string that
  33. is too short may accidentally match Windows required by the system,
  34. which can have catastrophic side effects.
  35.  
  36. The optional parameter '-u' can be specified to use a less friendly
  37. method of closing the window. In this case, a WM_QUIT message is sent
  38. to the application. By definition, WM_QUIT causes the message loop
  39. function GetMessage() to return 0, which suddenly stops all message
  40. processing in the target program. This can be dangerous because many
  41. programs will not have an opportunity to query the user to save data
  42. and data can be lost. Also, some programs do not clean up after
  43. themselves after the GetMessage() loop, which may prevent further
  44. instances of the program from executing without restarting Windows.
  45.  
  46. KILLWIN is distributed by Software Engineering, Inc. with Cron the
  47. Clock Daemon. It may not be re-distributed unless accompanied by the
  48. Cron program and its associated files.
  49.  
  50. Copyright (c) 1995-1996, Software Engineering, Inc.
  51. All rights reserved.
  52.